package com.jspgou.core.dao;

import java.sql.Date;
import java.util.List;

import com.jspgou.common.hibernate3.Updater;
import com.jspgou.common.page.Pagination;
import com.jspgou.core.entity.Member;

public interface MemberDao{
    public Member getByUserId(Long webId, Long userId);
    
    public Member getByUserIdAndActive(String activationCode, Long userId);

    public Pagination getPage(int pageNo, int pageSize);
    
    public Pagination getPage(int pageNo,int pageSize,Integer total);

    public Member findById(Long id);

    public Member save(Member bean);

    public Member updateByUpdater(Updater<Member> updater);

    public Member deleteById(Long id);

    public List<Member> getList();

}
